<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/include/jstl.jsp" %>
<script language= "javascript "> 
    $(document).ready(function(){
        //转化日期格式
        turnDateFormat();     
    }); 
    function addhref2(obj){
        //alert("传进来的值href为"+obj);
        var v =document.getElementById("abcde2").value;
        // alert("abcde的值为"+v);
        if(v.length > 0){
            document.getElementById("ddd2").href = "540282.tran?type=1&RULE_CODE_CODE="+v;//放cod 
        } 
    } 
</script> 

<html>
<body>
    <form id="pagerForm" action="540285.tran" method="post">
        <input type="hidden" name="pageNum"         value="${ETF.PAGENUM}"          />
        <input type="hidden" name="ID"              value="${ETF.ID}"               />
        <input type="hidden" name="USER_NAME"       value="${ETF.USER_NAME}"        />
        <input type="hidden" name="RULE_CODE_CODE"  value="${ETF.RULE_CODE_CODE}"   />
        <input type="hidden" name="RULE_CODE_NAME"  value="${ETF.RULE_CODE_NAME}"   />
        <input type="hidden" name="START_DATE"      value="${ETF.START_DATE}"       />
        <input type="hidden" name="END_DATE"        value="${ETF.END_DATE}"         />
    </form>
    <div class="pageHeader">
        <div class="searchBar">
            <form name="exceptRuleList" id="exceptRuleList" onsubmit="return navTabSearch(this)" action="540285.tran" method="post">
                <input type="hidden" name="ID" id="ID" value="${ETF.ID}" />
                <table class="searchContent">
                    <tr> 
                        <td align="left"  >  
                            流水号;
                            <input type="text"  id="code" name="TRAN_CODE" size="20" maxlength="30"   value="${ETF.TRAN_CODE}"/>
                        </td>
                        <!--td align="left" style="width:139px">  
                            交易来源:      
                            <select name="TRAN_SOURCE" id="TRAN_SOURCE" >
                                <option value="" selected="selected">--请选择--</option>
                                <option value="00" <c:if test="${ETF.TRAN_SOURCE=='00'}">selected="selected"</c:if>>线上</option>
                                <option value="01" <c:if test="${ETF.TRAN_SOURCE=='01'}">selected="selected"</c:if>>线下</option>
                            </select>
                        </td-->
                        <td>
                            交易类型:      
                            <select name="TRAN_TYPE" id="TRAN_TYPE" >
                                <option value="" selected="selected">--请选择--</option>
                                <option value="0" <c:if test="${ETF.TRAN_TYPE=='0'}">selected="selected"</c:if>>其他</option>
                                <option value="1" <c:if test="${ETF.TRAN_TYPE=='1'}">selected="selected"</c:if>>充值</option>
                                <option value="2" <c:if test="${ETF.TRAN_TYPE=='2'}">selected="selected"</c:if>>消费</option>
                                <option value="3" <c:if test="${ETF.TRAN_TYPE=='3'}">selected="selected"</c:if>>撤销</option>
                                <option value="4" <c:if test="${ETF.TRAN_TYPE=='4'}">selected="selected"</c:if>>预授权完成</option>
                                <option value="5" <c:if test="${ETF.TRAN_TYPE=='5'}">selected="selected"</c:if>>预授权完成撤销</option>
                                <option value="6" <c:if test="${ETF.TRAN_TYPE=='6'}">selected="selected"</c:if>>转账(虚拟帐号间)</option>
                                <option value="7" <c:if test="${ETF.TRAN_TYPE=='7'}">selected="selected"</c:if>>提现</option>
                                <option value="8" <c:if test="${ETF.TRAN_TYPE=='8'}">selected="selected"</c:if>>退款</option>
                            </select>
                        </td>
                        <td>
                            交易方式:      
                            <select name="TRAN_CLIENT" id="TRAN_CLIENT" >
                                <option value="" selected="selected">--请选择--</option><!-- 1网银、2终端、3消费卡、4虚拟积分 5混合-->
                                <option value="01" <c:if test="${ETF.TRAN_CLIENT=='01'}">selected="selected"</c:if>>01-网银</option>
                                <option value="02" <c:if test="${ETF.TRAN_CLIENT=='02'}">selected="selected"</c:if>>02-终端</option>
                                <option value="03" <c:if test="${ETF.TRAN_CLIENT=='03'}">selected="selected"</c:if>>03-消费卡</option>
                                <option value="04" <c:if test="${ETF.TRAN_CLIENT=='04'}">selected="selected"</c:if>>04-虚拟账户</option>
                                <option value="05" <c:if test="${ETF.TRAN_CLIENT=='05'}">selected="selected"</c:if>>05-快捷支付</option>                                            
                            </select>
                        </td>
                    </tr>
                </table>
                <div class="subBar">
                    <ul>
                        <li>
                            <div class="buttonActive"><div class="buttonContent"><button type="submit"  onclick="return checkS();">查询</button></div></div>
                        </li>
                    </ul>
                </div>
            </form>
        </div>
    </div>
    <div class="pageContent">
        <div class="panelBar"></div>
        <table class="table"  layoutH="149">
            <thead>
                <tr>
                    <th width="130">异常交易流水号</th>
                    <!--th width="120">交易来源</th-->
                    <th width="120">客户类型</th>
                    <th width="180">客户编号</th>
                    <th width="180">客户名称</th>
                    <th width="100">交易金额(元)</th>
                    <th width="150">交易类型</th>
                    <th width="120">交易方式</th>
                    <th width="100">交易登记日期</th>
                </tr>
            </thead>
            <tbody>
                <c:choose>
                    <c:when test="${ETF.RSPCOD=='000000'}">
                        <c:forEach items="${ETF.REC}" var="GRP">
                            <tr target="sid_user" rel="1">               
                                <td>${GRP.TRAN_CODE}</td>
                                <!--td>
                                    <c:if test="${GRP.TRAN_SOURCE =='00'}">线上</c:if>
                                    <c:if test="${GRP.TRAN_SOURCE =='01'}">线下</c:if>
                                </td--><!--交易来源  00线上、01线下-->
                                <td>
                                    <c:if test="${GRP.ENTITY_TYPE =='0'}">用户</c:if>
                                    <c:if test="${GRP.ENTITY_TYPE =='1'}">商户</c:if>
                                </td>
                                <td>
                                    <c:if test="${GRP.ENTITY_TYPE =='0'}">${GRP.USER_CODE}</c:if>
                                    <c:if test="${GRP.ENTITY_TYPE =='1'}">${GRP.COMP_CODE}</c:if>
                                </td><!--客户户编号-->
                                <td> 
                                    <c:if test="${GRP.ENTITY_TYPE =='0'}">${GRP.USER_NAME2}</c:if>
                                    <c:if test="${GRP.ENTITY_TYPE =='1'}">${GRP.COMP_NAME2}</c:if>
                                </td><!--客户户名称-->
                                <td> 
                                    <fmt:formatNumber type="currency"  value="${GRP.TRAN_AMT/100}" pattern="0.00"/>
                                </td><!--交易金额-->
                                <td>
                                    <c:if test="${GRP.TRAN_TYPE == null}">----</c:if>
                                    <c:if test="${GRP.TRAN_TYPE =='0'}">其他</c:if>
                                    <c:if test="${GRP.TRAN_TYPE =='1'}">充值</c:if>
                                    <c:if test="${GRP.TRAN_TYPE =='2'}">消费</c:if>
                                    <c:if test="${GRP.TRAN_TYPE =='3'}">撤销</c:if>
                                    <c:if test="${GRP.TRAN_TYPE =='4'}">预授权完成</c:if>
                                    <c:if test="${GRP.TRAN_TYPE =='5'}">预授权完成撤销</c:if>
                                    <c:if test="${GRP.TRAN_TYPE =='6'}">转账(虚拟帐号间)</c:if>
                                    <c:if test="${GRP.TRAN_TYPE =='7'}">提现</c:if>
                                    <c:if test="${GRP.TRAN_TYPE =='8'}">退款</c:if>
                                </td><!--交易类型0其他,1充值、2消费、3撤销、4预授权完成、5预授权完成撤销、6转账(虚拟帐号间)、7提现、8退款 -->
                                <td>
                                    <c:if test="${GRP.TRAN_CLIENT == null}">----</c:if>
                                    <c:if test="${GRP.TRAN_CLIENT =='01'}">网银</c:if>
                                    <c:if test="${GRP.TRAN_CLIENT =='02'}">终端</c:if>
                                    <c:if test="${GRP.TRAN_CLIENT =='03'}">消费卡</c:if>
                                    <c:if test="${GRP.TRAN_CLIENT =='04'}">虚拟账户</c:if>
                                    <c:if test="${GRP.TRAN_CLIENT =='05'}">快捷支付</c:if>
                                </td>      <!--交易方式1网银、2终端、3消费卡、4虚拟积分 5混合-->
                                <td class="dateFormatTd">${GRP.REGDT_DAY}</td><!--交易登记日期-->
                            </tr>
                        </c:forEach>                            
                    </c:when>
                    <c:otherwise>
                        <tr>
                            <td>没有符合条件的记录</td>
                        </tr>
                    </c:otherwise>
                </c:choose>
            </tbody>
        </table>
        <div class="panelBar">
            <!-- 导出异常汇总-->
            <c:if test="${ETF.RSPCOD=='000000'}">
                <ul class="toolBar">
                    <li><a class="icon" href="540290.tran?ID=${ETF.ID}" 
                            target="dwzExport" targetType="navTab" title="确定导出这些记录吗?"><span>导出EXCEL</span></a>
                    </li>
                </ul>                          
            </c:if>
            <div class="pages">
                <span>共[${ETF.TOLCNT}]条,每页显示${ETF.NUMPERPAGE}条,当前第
                <c:choose>
                    <c:when test="${ETF.TOLCNT==0}">0</c:when>
                    <c:when test="${ETF.TOLCNT>0&&ETF.TOLCNT<=ETF.NUMPERPAGE*1}">1-${ETF.TOLCNT}</c:when>  
                    <c:otherwise>
                        <c:choose>
                            <c:when test="${(ETF.PAGENUM-1)*ETF.NUMPERPAGE+1>ETF.TOLCNT}">${ETF.STARTINDEX}</c:when>
                            <c:otherwise>${(ETF.PAGENUM-1)*ETF.NUMPERPAGE+1}</c:otherwise>
                        </c:choose>
                        -
                        <c:choose>                     
                            <c:when test="${ETF.PAGENUM*ETF.NUMPERPAGE>=ETF.TOLCNT}">${ETF.TOLCNT}</c:when>           
                            <c:otherwise>${ETF.PAGENUM*ETF.NUMPERPAGE}</c:otherwise>                 
                        </c:choose>
                    </c:otherwise>                
                </c:choose>
                条</span>
            </div>             
            <div class="pagination" targetType="navTab" totalCount="${ETF.TOLCNT}" numPerPage="${ETF.NUMPERPAGE}" pageNumShown="${ETF.PAGENUMSHOWN}" currentPage="${ETF.PAGENUM}"></div>
        </div>
    </div>     
</body>
</html>
